package com.lz.controller;

import com.lz.feign.GoodsFeign;
import com.lz.pojo.Goods;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/9/24 下午12:49
 * </pre>
 **/
@RequestMapping("/user")
@RestController
public class UserController {

    @Resource
    private GoodsFeign goodsFeign;

    @RequestMapping("/list")
    public String list() {
        List<Goods> list = goodsFeign.list();
        return list.toString();
    }
}
